class MsiInfo {
    static belongsTo = Accdns;
    static hasMany = [accdnses:Accdns]
    String agentDN//电话号码
	String agentID//坐席编号
	String skillarray
	boolean isMonitor=false
	boolean isSilent=false
	String domain
	String password
	Date occurTime = new Date()
	String agtAction
	String status
	Integer actDuration
    //Integer userID
    //String userRealname
    User user
    //String callcenterDN
    Companysn companySN
    static constraints = {
        agentDN(blank:false, nullable:false, size:4..13,unique:true,matches:"(((010|02\\d{1}|0[3-9]\\d{2})(-)?\\d{7,8}|(0)?1(3\\d{1}|58|59|56|88|89)\\d{8}))")
        agentID(blank:false,nullable:false, size:3..3,matches:"\\d{3}")
        //userID(blank:false, nullable:false)
        //author(nullable:false)
   }
}
